﻿/*---------------------------------------------------------------------*/
// fileName="INotifyWinView.cs" CompanyName="SureKAM"
// Copyright SureKAM (c). All right reserved.
/*---------------------------------------------------------------------*/

namespace SureKAM.BackUp.Notify.Presenter.ViewInterfaces
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public delegate bool NotifyAdd(Domain.Notify notify);

    public delegate List<Notify.Domain.Notify> Reflush();

    public delegate bool NotifyDelete(string currentId);

    public delegate bool NotifyUpdate(Domain.Notify notify);
    /// <summary>
    /// NotifyWin View
    /// </summary>
    public interface INotifyWinView
    {
        /// <summary>
        /// 绑定数据
        /// </summary>
        /// <param name="notifies">通知者集合</param>
        void DataBindGrid(List<Domain.Notify> notifies);

        /// <summary>
        /// 刷新
        /// </summary>
        Reflush reflush { get; set; }

        /// <summary>
        /// 添加一个Notify对像
        /// </summary>
        NotifyAdd notifyAdd { get; set; }

        /// <summary>
        /// 删除对象
        /// </summary>
        NotifyDelete notifyDelete { get; set; }

        /// <summary>
        /// 修改对象
        /// </summary>
        NotifyUpdate notifyUpdate { get; set; }
    }
}
